package com.yicong.ants.ui.present;

import android.util.Pair;

import com.cchao.simplelib.core.UiHelper;
import com.cchao.simplelib.ui.activity.BaseTitleBarActivity;
import com.yicong.ants.R;

/**
 * 全屏ad广告
 *
 * @author cch
 * @version 2020/7/25
 */
public class AdFullScreenActivity extends BaseTitleBarActivity {
    @Override
    protected int getLayout() {
        return R.layout.ad_full_activity;
    }

    @Override
    protected void initEventAndData() {
        setTitleBarVisible(false);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        UiHelper.showCancelDialog(mContext, "退出视频页将无法获得奖励",
            Pair.create("继续观看", (dialog, which) -> dialog.dismiss()),
            Pair.create("坚持退出", (dialog, which) -> {
                dialog.dismiss();
                finish();
            }));
    }

    @Override
    protected void onLoadData() {

    }
}
